AM_CFLAGS = $(GLIB_CFLAGS) $(GIO_CFLAGS) -g
AM_CFLAGS += `pkg-config --cflags glib-2.0 gio-unix-2.0 libusb-1.0`
AM_LDFLAGS = `pkg-config --libs glib-2.0 gio-unix-2.0 libusb-1.0`
AM_CPPFLAGS = -I$(top_srcdir)/private-include
 
BUILT_SOURCES = ofprint-generated.c ofprint-generated.h
dist_noinst_DATA = com.oms.Ofprint2686.xml
 
bin_PROGRAMS = ofprint2686-serverd
 
ofprint2686_serverd_SOURCES = ofprint-server.c app_fp256_360.c usb_device.c ofprint_common.c upgrade.c common.c intf_usb.c sha1.c\
	upgrade_acm32.c upgrade_thm36.c upgrade_ccm4201s.c ofprint-generated.c ofprint-generated.h 
ofprint2686_serverd_LDADD = $(GLIB_LIBS) $(GIO_LIBS)
 
ofprint-generated.c ofprint-generated.h : com.oms.Ofprint2686.xml
	gdbus-codegen  --interface-prefix=com.oms. --generate-c-code=ofprint-generated $<

MOSTLYCLEANFILES = $(BUILT_SOURCES)
